package Exec02;

import Exec01.Account;
import org.apache.ibatis.annotations.DeleteProvider;


import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.Date;
import java.util.List;

/**
 * @Author: yg
 * @create 2025-01-27 - 19:23
 * @
 */
public interface AccountDAO {
    void insert(Connection conn, Account acct);
    void deleteById(Connection conn, int id);

    void update(Connection conn, Account acct);

    Account getAccountById(Connection conn, int id);

    List<Account> getAll(Connection conn);

    Long getCount(Connection conn);

    Date getMaxBirth(Connection conn);
}
